﻿@namespace Masa.Blazor
@inherits MasaComponentBase

<CascadingValue Value="IsDark" Name="IsDark">
    <BCascadingValue Value="this" IsFixed>
        <ShowTransitionElement
            Value="@(Show ?? true)"
            Tag="@Tag"
            Class="@GetClass()"
            Style="@GetStyle()"
            id="@Id"
            @attributes="@Attributes"
            ReferenceCaptureAction="r => Ref = r">
            @GenBody()
        </ShowTransitionElement>
    </BCascadingValue>
</CascadingValue>

@code {

    protected virtual RenderFragment GenBody() => __builder => { @ChildContent };

}